using System;
using System.Text;
using System.IO;

using Icodeon.Util;

// Logging
//#if LOG4NET
using log4net;
using log4net.Config;
using log4net.Core;
//#endif

namespace Icodeon.Scorm2CC
{
    public class Scorm2ccDefaults
    {
        private DirectoryInfo input;
        private DirectoryInfo output;
        private FileInfo xslFileForScorm1p2; 
        private FileInfo xslFileForScorm2004;

        public Scorm2ccDefaults()
        {
            IOUtils ioUtils = new IOUtils();
            DirectoryInfo root = ioUtils.GetApplicationDirectory();

            // Set the defaults
            this.input = ioUtils.CombineParentAndChildDirectoryNames(root, "scorm");
            this.output = ioUtils.CombineParentAndChildDirectoryNames(root, "cc");
            this.xslFileForScorm1p2 = ioUtils.CombineDirectoryNameAndFileName(root, "scorm2cc/scorm1.2cc.xslt");
            this.xslFileForScorm2004 = ioUtils.CombineDirectoryNameAndFileName(root, "scorm2cc/scorm2004cc.xslt");
        }

        public DirectoryInfo Input
        {
            get
            {
                return this.input;
            }
        }

        public DirectoryInfo Output
        {
            get
            {
                return this.output;
            }
        }

        public FileInfo XslFileForScorm1p2
        {
            get
            {
                return this.xslFileForScorm1p2;
            }
        }

        public FileInfo XslFileForScorm2004
        {
            get
            {
                return this.xslFileForScorm2004;
            }
        }
    }
}
